package com.llt.music.mapper;

import com.llt.music.model.Music;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MusicMapper {

    int add(String title, String singer, String time, String url, int userId);

    Music query(String title, String singer);

    Music queryById(int id);

    int deleteMusicById(int id);

    List<Music> findMusics();

    List<Music> findMusicsByName(String name);

}
